import { createRouter, createWebHistory } from 'vue-router'
import errorRouter from "@/views/errorpages/route"
import login from "../views/logins/route"
const routes = [
  ...errorRouter,
  ...login,
  {
    path:"/:pathMatch(.*)",
    redirect:{
      name:"404"
    }
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
